package com.rural.bus;

import com.rural.bus.model.User;

import cn.jpush.android.api.JPushInterface;
import android.app.Application;

public class MyApplication extends Application {
	
	private User mCurrentUser;
	private static MyApplication instance;
	
	public static MyApplication instance() {
		return instance;
	}
	
	@Override
	public void onCreate() {
		super.onCreate();
		instance = this;
		 JPushInterface.setDebugMode(true);
		 JPushInterface.init(this);
		 mCurrentUser=User.getUserFromPref(this);
		    
	}
	
	public void setCurrentUser(User user){
		this.mCurrentUser=user;
	}
	
	public User getCurrentUser(){
		return mCurrentUser;
	}

}
